package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbProductCommentLikeService;
import com.gidgabs.modules.dao.TbProductCommentLikeDao;
import com.gidgabs.modules.entity.TbProductCommentLikeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbProductCommentLikeServiceImpl implements TbProductCommentLikeService {
	@Autowired
	private TbProductCommentLikeDao userCommentLikeDao;
	
	@Override
	public TbProductCommentLikeEntity queryObject(Integer id){
		return userCommentLikeDao.queryObject(id);
	}
	
	@Override
	public List<TbProductCommentLikeEntity> queryList(Map<String, Object> map){
		return userCommentLikeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userCommentLikeDao.queryTotal(map);
	}
	
	@Override
	public void save(TbProductCommentLikeEntity userCommentLike){
		userCommentLikeDao.save(userCommentLike);
	}
	
	@Override
	public void update(TbProductCommentLikeEntity userCommentLike){
		userCommentLikeDao.update(userCommentLike);
	}
	
	@Override
	public void delete(Integer id){
		userCommentLikeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userCommentLikeDao.deleteBatch(ids);
	}

	@Override
	public TbProductCommentLikeEntity queryByObject(TbProductCommentLikeEntity tbProductCommentLikeEntity) {
		return userCommentLikeDao.queryByObject(tbProductCommentLikeEntity);
	}

}
